<!doctype html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
         <title>买家中心</title>
         <link rel="stylesheet" href="__ROOT__/Apps/Home/View/default/css/common.css" />
         <link rel="stylesheet" href="__ROOT__/Apps/Home/View/default/css/user.css">
         <style>
         	.mxc-odetal-box{padding:10px;text-align:center;background-color:#ffffff;}
         	.mxc-tab{border-collapse: collapse; }
         	.mxc-tab-cpt{text-align:left;height:30px;font-weight:bold;}
         	.mxc-tab tr{height:30px;}
         	.mxc-tab tr td{border:1px solid #eeeeee;}
         	.mxc-td-title{width:100px;text-align:right;}
         	.mxc-td-content{padding-left:6px;text-align:left;}
         	.mxc-align-center{text-align:center;}
         </style>
	     
    </head>
    
    <body style="background-color:#f5f5f5;">
        <div style="text-align:center;">
        	<div class="mxc-odetal-box">
        	<table cellspacing="0" cellpadding="0" class="mxc-tab" width="920" style="border:1px solid #eeeeee;margin:0 auto;">
        		<caption class="mxc-tab-cpt">日志信息
        		<span style="color:blue;float:right;">
        			<if condition='($order["orderStatus"] eq -3) OR ($order["orderStatus"] eq -4)'>
        			拒收(<if condition='$order["isRefund"] eq 1'>已退款<else/>未退款 </if>
			        <elseif condition='$orderInfo["order"]["orderStatus"] eq -2'/>未付款
			        <elseif condition='$orderInfo["order"]["orderStatus"] eq -1'/>已取消
			        <elseif condition='$orderInfo["order"]["orderStatus"] eq 0'/>未受理
			        <elseif condition='$orderInfo["order"]["orderStatus"] eq 1'/>已受理
			        <elseif condition='$orderInfo["order"]["orderStatus"] eq 2'/>打包中
			        <elseif condition='$orderInfo["order"]["orderStatus"] eq 3'/>配送中
			        <elseif condition='$orderInfo["order"]["orderStatus"] eq 4'/>已到货
			        <elseif condition='$orderInfo["order"]["orderStatus"] eq 5'/>确认已收货
			        </if>
        		</caption>
        		</span>
        		<tbody>
	        		<volist name="orderInfo['logs']" id="log" key='key1'>
	        		<tr>
	        			<td width="200">{$log["logTime"]}</td>
	        			<td class="mxc-td-content">{$log["logContent"]}</td>
	        		</tr>
	        		</volist>
        		</tbody>
        	</table>
        	</div>
        	<br/><br/>
        	<div class="mxc-odetal-box">
        	<table cellspacing="0" cellpadding="0" class="mxc-tab" width="920" style="border:1px solid #eeeeee;margin:0 auto;">
        		<caption class="mxc-tab-cpt">订单信息</caption>
        		<tbody>
	        		<tr>
	        			<td class="mxc-td-title">订单编号：</td>
	        			<td class="mxc-td-content">{$orderInfo["order"]["orderNo"]}</td>
	        		</tr>
	        		<tr>
	        			<td class="mxc-td-title">支付方式：</td>
	        			<td class="mxc-td-content"><if condition='$orderInfo["order"]["payType"]==0'>货到付款<else/>在线支付</if></td>
	        		</tr>
	        		<tr>
	        			<td class="mxc-td-title">配送方式：</td>
	        			<td class="mxc-td-content">
	        				<if condition='$orderInfo["order"]["isSelf"]==1'>
	        					自提
	        				<else/>
	        					<if condition='$orderInfo["order"]["deliverType"]==0'>商城配送<else/>店铺配送</if>
	        				</if>
	        			</td>
	        		</tr>
	        		<tr>
	        		    <td class="mxc-td-title">买家留言：</td>
	        		    <td class="mxc-td-content">{$orderInfo["order"]["orderRemarks"]}</td>
	        		</tr>
	        		<tr>
	        			<td class="mxc-td-title">下单时间：</td>
	        			<td class="mxc-td-content">{$orderInfo["order"]["createTime"]}</td>
	        		</tr>
        		</tbody>
        	</table>
        	</div>
        	<br/><br/>
        	<div class="mxc-odetal-box">
        	<table cellspacing="0" cellpadding="0" class="mxc-tab" width="920" style="border:1px solid #eeeeee;margin:0 auto;">
        		<caption class="mxc-tab-cpt">收货人信息</caption>
        		<tbody>
	        		
	        		<tr>
	        			<td class="mxc-td-title">收货人姓名：</td>
	        			<td class="mxc-td-content">{$orderInfo["order"]["userName"]}</td>
	        		</tr>
	        		<tr>
	        			<td class="mxc-td-title">地址：</td>
	        			<td class="mxc-td-content">{$orderInfo["order"]["userAddress"]} </td>
	        		</tr>
	        		<tr>
	        			<td class="mxc-td-title">联系电话：</td>
	        			<td class="mxc-td-content">{$orderInfo["order"]["userPhone"]} <if condition='$orderInfo["order"]["userTel"] neq ""'>| {$orderInfo["order"]["userTel"]}</if></td>
	        		</tr>
	        		<tr>
	        			<td class="mxc-td-title">期望送达时间：</td>
	        			<td class="mxc-td-content">{$orderInfo["order"]["requireTime"]}</td>
	        		</tr>
        		</tbody>
        	</table>
        	</div>
        	<br/><br/>
        	<notempty name='orderInfo["order"]["invoiceClient"]'>
        	<div class="mxc-odetal-box">
        	<table cellspacing="0" cellpadding="0" class="mxc-tab" width="920" style="border:1px solid #eeeeee;margin:0 auto;">
        		<caption class="mxc-tab-cpt">发票信息</caption>
        		<tbody>
	        		<tr>
	        			<td class="mxc-td-title">发票抬头：</td>
	        			<td class="mxc-td-content">{$orderInfo["order"]["invoiceClient"]}</td>
	        		</tr>
        		</tbody>
        	</table>
        	</div> 
        	</notempty>       	
        	<div class="mxc-odetal-box" style='padding-bottom:5px;'>
        	<table cellspacing="0" cellpadding="0" class="mxc-tab" width="920" style="margin:0 auto;">
        		<caption class="mxc-tab-cpt">商品信息</caption>
        		<tbody>
	        		<tr>
	        			<td width='*' class="mxc-align-center">商品</td>
	        			<td width='150' class="mxc-align-center">商品价格</td>
	        			<td width='150' class="mxc-align-center">商品数量</td>
	        			<td width='150' class="mxc-align-center">商品总金额</td>
	        		</tr>
	        		<volist name="orderInfo['goodsList']" id="goods" key='key1'>
	        		<tr>
	        			<td class="mxc-align-center" style="vertical-align: middle;">
		        			<div style="float:left;width:50px;">
			        			<a href="{:U('Home/Goods/getGoodsDetails/',array('goodsId'=>$goods['goodsId']))}" target="_blank">
			        			   <img style='margin:2px;' src="__ROOT__/{$goods['goodsThumbs']}" width='50' height='50'/>
			        			</a>
		        			</div>
		        			<div style="float:left;width:360px;text-align: left;vertical-align: middle;margin-left: 8px;line-height: 20px;padding-top:15px;">
		        				<a href="{:U('Home/Goods/getGoodsDetails/',array('goodsId'=>$goods['goodsId']))}__ROOT__/index.php/Home/Goods/getGoodsDetails/?goodsId={$goods['goodsId']}" target="_blank">
		        				{$goods["goodsName"]}<if condition="$goods['goodsAttrName'] neq ''">【{$goods['goodsAttrName']}】</if>
		        				</a>
		        			</div>
		        			<div class="mxc-clear"></div>
	        			</td>
	        			<td class="mxc-align-center">￥{$goods["shopPrice"]}</td>
	        			<td class="mxc-align-center">{$goods["goodsNums"]}</td>
	        			<td class="mxc-align-center">￥{$goods["shopPrice"]*$goods["goodsNums"]}</td>
	        		</tr>
	        		</volist>
        		</tbody>
        		<tr>
        		   <td colspan='4' style='border-left:0px;border-right:0px;border-bottom:0px;text-align:right;padding-right:5px;'>
        		  商品总金额： ￥{$orderInfo["order"]["totalMoney"]}  <br/>
        		   + 运费：￥{$orderInfo["order"]["deliverMoney"]}<br/> 
        		   <span style='font-weight:bold;font-size:20px;'>订单总金额：</span><span style='font-weight:bold;font-size:20px;color:red;'>￥{$orderInfo["order"]["totalMoney"]+$orderInfo["order"]["deliverMoney"]}</span></td>
        		</tr>
        	</table>
        	</div>
        </div>
    </body>


</html>
